package com.yjyw.tiexie.util;

import com.yjyw.tiexie.BuildConfig;
import com.github.moduth.blockcanary.BlockCanaryContext;

public class AppBlockCanaryContext extends BlockCanaryContext {

// override to provide context like app qualifier, uid, network type, block threshold, log save path

// this is default block threshold, you can set it by phone's performance

    @Override
    public int getConfigBlockThreshold() {
        return 5000;
    }

    // if set true, notification will be shown, else only write log file
    @Override
    public boolean isNeedDisplay() {
        return BuildConfig.DEBUG;
    }

    // path to save log file
    @Override
    public String getLogPath() {
        return "/mnt/sdcard/dm";
    }
}


